<%@ page pageEncoding="utf-8"%>
<%@page import="edu.pet.entity.Pet" %>
  <%
  	Pet pet = new Pet();
  	pet = (Pet)session.getAttribute("pet");
  %>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="allpage.css" >
    <title>宠物诊所</title>
  </head>
  <script type="text/javascript" src="../user/table_style.js"></script>
  <body>
  <div class="background">
  <jsp:include page="suc.jsp"></jsp:include>
	  	<form action="../servlet/PetUpdateServlet" method="post">
	  		<input type="hidden" value="<%=pet.getPet_id() %>" name="" />
		  	<table align="center">
		  		<tr>
		  			<td>宠物名称</td>
		  			<td><input name="text1" type="text" name="petname" value="<%=pet.getName() %>" disabled="disabled"/></td>
		  		</tr>
		  		<tr>
		  			<td>类型</td>
		  			<td><input name="text2" type="text" name="type" value="<%=pet.getType() %>"  disabled="disabled"/></td>
		  		</tr>
		  		<tr>
		  			<td>出生日期</td>
		  			<td><input type="text" name="birth" value="<%=pet.getBirthday() %>" disabled="disabled" /></td>
		  		</tr>
		  		<tr>
		  			<td>所有人名称</td>
		  			<td><input type="text" name="ownername" value="<%=pet.getOwner_name() %>" disabled="disabled" /></td>
		  		</tr>
		  		<tr>
		  			<td>
			  			<input type="button" value="阅览病例" onclick="javascript:window.location='../servlet/HistoryViewServlet?petid=<%=pet.getPet_id() %>'" />
		  			</td>
		  			<td>
				  		<input type="button" value="新增病例" onclick="javascript:window.location='../servlet/HistoryAddServlet?petid=<%=pet.getPet_id() %>&handle=show'" />
		  			</td>
		  		</tr>
		  		<tr>
		  			<td>
				  		<input type="button" value="修改信息" onclick="javascript:window.location='../servlet/PetUpdateServlet?handle=showUpdate'"/>
				  		<div>
				  			
				  		</div>
		  			</td>
		  		</tr>
		  		
		  	</table>
	  	</form>
  	</div>
   </body>
</html>
